import request from './request'

const getResult = {
    search(keywords,limit,type,offset){
        return request({
            url:'/api/cloudsearch',
            params:{
                keywords,
                limit,
                type,
                offset
            }
        })
    },
    play(id){
        return request({
            url:'/api/song/url',
            params:{
                id
            }
        })
    }
}

export default getResult